import {get, post} from '../fetch'

// 【liveRecord】--获取列表
export const getJdLiveRecordList = (params) => get('jdLiveRecord/getList', params)
// 【liveRecord】--获取列表
export const getJdLiveRecordGoldAwardList = (params) => get('jdLiveRecord/getRecordGoldAwardList', params)
// 【liveRecord】--新增数据
export const saveJdLiveRecord = (params) => post('jdLiveRecord/save', params)
// 【liveRecord】--更新数据
export const editJdLiveRecord = (params) => post('jdLiveRecord/edit', params)
// 【liveRecord】--删除数据
export const deleteJdLiveRecord = (data) => post('jdLiveRecord/delete/' + data, data)

// 【liveRecord】--获取列表
export const getLiveInfo = (params) => post('jdLive/getLiveList', params)

export const getMatchLiveUser = (params) => get('jdLive/getLiveUserList', params)
// 【live】--获取列表
export const getJdLiveList = (params) => get('jdLive/getList', params)
// 【live】--获取列表 不分页
export const getAllJdLiveList = (params) => get('jdLive/getAllList', params)
// 【live】--新增数据
export const saveJdLive = (params) => post('jdLive/save', params)
// 【live】--新增数据
export const saveLiveUser = (params) => post('jdLive/saveLiveUser', params)
// 【live】--校验是否已经成为主播
export const setLiveUserCheck = (params) => post('jdLive/setLiveUserCheck', params)
// 【live】--更新数据
export const editJdLive = (params) => post('jdLive/edit', params)
// 【live】--删除数据
export const deleteJdLive = (data) => post('jdLive/delete/' + data, data)

// 【liveApply】--获取列表
export const getJdLiveApplyList = (params) => get('jdLiveApply/getList', params)
// 【liveApply】--获取列表
export const getLiveApply = (params) => get('jdLiveApply/getLiveApply', params)
// 【liveApply】--主播申请 审核
export const applyLive = (params) => post('jdLiveApply/applyLive', params)

// 【LiveGoldAward】--获取列表
export const getJdLiveGoldAwardList = (params) => get('jdLiveGoldAward/getList', params)
// 【LiveGoldAward】--新增数据
export const saveJdLiveGoldAward = (params) => post('jdLiveGoldAward/save', params)
// 【LiveGoldAward】--更新数据
export const editJdLiveGoldAward = (params) => post('jdLiveGoldAward/edit', params)
// 【LiveGoldAward】--删除数据
export const deleteJdLiveGoldAward = (data) => post('jdLiveGoldAward/delete/' + data, data)

//举报类型
// 【jdReportType】--获取列表
export const getJdReportTypeList = (params) => get('jdReportType/getList', params)
// 【jdReportType】--新增数据
export const saveJdReportType = (params) => post('jdReportType/save', params)
// 【jdReportType】--更新数据
export const editJdReportType = (params) => post('jdReportType/edit', params)
// 【jdReportType】--删除数据
export const deleteJdReportType = (data) => post('jdReportType/delete/' + data, data)

//举报列表
// 【viewLiveReport】--获取列表
export const getViewLiveReportList = (params) => get('viewLiveReport/getList', params)
// 【jdLiveReport】--删除数据
export const deleteJdLiveReport = (data) => post('jdLiveReport/delete/' + data, data)

